package com.yao2san.simcasserver.processor;

import lombok.Setter;

import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import java.util.Map;

public class DefaultAuthenticationObject implements AuthenticationObject {
    @Setter
    private ServletRequest servletRequest;
    @Setter
    private ServletResponse servletResponse;
    @Setter
    private Map<String, String> authenticationParameter;

    @Override
    public ServletRequest getServletRequest() {
        return this.servletRequest;
    }

    @Override
    public ServletResponse getServletResponse() {
        return this.servletResponse;
    }

    @Override
    public Map<String, String> getAuthenticationParameter() {
        return this.authenticationParameter;
    }

    @Override
    public String getServiceUrl() {
        return this.authenticationParameter.get("service");
    }
}
